package com.kingschan.jeasytag.web.listen;

import javax.servlet.ServletContextAttributeEvent;
import javax.servlet.ServletContextAttributeListener;
import javax.servlet.annotation.WebListener;
@WebListener
public class EasyTagAttributeListen implements ServletContextAttributeListener{

	@Override
	public void attributeAdded(ServletContextAttributeEvent arg0) {
		System.out.println(String.format("add: %s  value: %s", arg0.getName(),arg0.getValue().toString()));
		
	}

	@Override
	public void attributeRemoved(ServletContextAttributeEvent arg0) {	
		System.out.println(String.format("removed: %s  value: %s", arg0.getName(),arg0.getValue().toString()));
		
	}

	@Override
	public void attributeReplaced(ServletContextAttributeEvent arg0) {
		System.out.println(String.format("replaced: %s  value: %s", arg0.getName(),arg0.getValue().toString()));
		
	}

}
